package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author xgq
 * @since 2025-03-04
 */
@Getter
@Setter
@TableName("order_snapshot")
public class OrderSnapshot {
    @TableId(type = IdType.AUTO)
    private Long snapshotId;
    private Long orderId;
    private Long userId;
    private Long productId;
    private String productName;
    private BigDecimal productPrice;
    private Integer productQuantity;
    private Long discount;
    private BigDecimal currentPrice;
    private LocalDateTime snapshotTime;
    private Long attributeId;
}
